package yongjian.drp.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import yongjian.drp.dao.FlowCardDetailDao;
import yongjian.drp.model.FlowCardDetail;
import yongjian.drp.vo.FlowCardDetailVO;

@Component
public class FlowCardDetailService {

	private FlowCardDetailDao flowCardDetailDao;
	
	public FlowCardDetailDao getFlowCardDetailDao() {
		return flowCardDetailDao;
	}
	@Resource
	public void setFlowCardDetailDao(FlowCardDetailDao flowCardDetailDao) {
		this.flowCardDetailDao = flowCardDetailDao;
	}

	public void add(FlowCardDetail fcd) {
		flowCardDetailDao.add(fcd);
	}

	public void modify(FlowCardDetail fcd) {
		flowCardDetailDao.modify(fcd);
	}

	public List<FlowCardDetailVO> queryByPage(int page, int rows, Map<String,Object> map) {
		List<FlowCardDetailVO> fvos = flowCardDetailDao.queryByPage(page, rows, map);
		return fvos;
	}

	public int getAllRecord(Map<String,Object> map) {
		return flowCardDetailDao.getAllRecord(map);
	}	
}
